#define resources()
<link rel="stylesheet" href='#(ctx)#assets("static/assets.jcss")'/>
<script src='#(ctx)#assets("static/assets.jjs")'></script>
#end

<!--左侧导航菜单-->
#define leftmenu()
<div class="easyui-accordion" data-options="border:false,fit:true,selected:true">
    <div title="权限管理" data-options="iconCls:'fa fa-navicon'">
        <ul>
            <li data-url='#(ctx)/admin/user/userManage'>用户管理</li>
            <li data-url='#(ctx)/admin/roleMenu/roleManage'>角色管理</li>
            <li data-url='#(ctx)/admin/roleMenu/menuManage'>菜单管理</li>
        </ul>
    </div>

    <div title="业务管理" data-options="iconCls:'fa fa-navicon'">
        <ul>
            <li data-url='#(ctx)/admin/news/newsManage'>新闻管理</li>
        </ul>
    </div>

    <div title="系统管理" data-options="iconCls:'fa fa-navicon'">
        <ul>
            <li data-url='druid' data-options="1">druid日志</li>
            <li data-url='druid'>登录日志</li>
            <li data-url='druid'>字典管理</li>
            <li data-url='druid'>参数管理</li>
        </ul>
    </div>
</div>
#end

<!--页脚-->
#define footer()
<div data-options="region:'south'" class="super-south">
    <!--页脚-->
    <div class="super-footer-info">
        <span><i class="fa fa-copyright"></i> CopyRight 2017版权所有 <i class="fa fa-caret-right"></i></span>
        <span><i class="fa fa-info-circle"></i>QQ群：237587118</span>
        #hasRole(admin)
            <span><a onclick="showOnlineUsers()">当前在线人数：#userCount()</a></span>
        #end
    </div>
</div>
<script>
    function showOnlineUsers() {
        parent.$.modalDialog({
            title: "实时在线 #userCount()",
            width: 300,
            height: 300,
            href: "#(ctx)/admin/user/onlineUserPage"
        });
    }
</script>
#end